//
//  MovieTableViewCell.m
//  UI14_豆瓣完整版
//
//  Created by dllo on 15/12/31.
//  Copyright © 2015年 dllo. All rights reserved.
//

#import "MovieTableViewCell.h"

@implementation MovieTableViewCell


- (void)dealloc {
    [_imageView1 release];
    [_imageView2 release];
    [_label release];
    [super dealloc];
}

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier {
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        [self createCell1];
    }
    return self;
}

- (void)createCell1 {
    
    self.imageView1 = [[UIImageView alloc] init];
    [self.contentView addSubview:self.imageView1];
    [_imageView1 release];
    
    self.label = [[UILabel alloc] init];
    [self.imageView1 addSubview:self.label];
    [_label release];
    
    self.imageView2 = [[UIImageView alloc] init];
    [self.imageView1 addSubview:self.imageView2];
    [_imageView2 release];
    
}

- (void)layoutSubviews {
    
    [super layoutSubviews];
    
    self.imageView1.frame = CGRectMake(15, 5, 350, 140);
    self.imageView1.backgroundColor = [UIColor clearColor];
    self.imageView1.image = [UIImage imageNamed:@"bg_eventlistcell.png"];
    
    self.imageView2.frame = CGRectMake(10, 10, 80, 120);
    self.imageView2.backgroundColor = [UIColor clearColor];
    
    self.label.frame = CGRectMake(100, 50, 200, 50);
    self.label.backgroundColor = [UIColor clearColor];
    self.label.font = [UIFont systemFontOfSize:20];
    
    
}



- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
